package org.example.library_management_system.Service;

import org.example.library_management_system.Model.BookInfo;
import org.example.library_management_system.Model.PageRequest;
import org.example.library_management_system.Model.PageResult;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface BookService {

    public Integer insertBook(BookInfo bookInfo);

//    public List<BookInfo> selectPageBooks(PageRequest pageRequest);

    public PageResult selectBookByPage(PageRequest pageRequest);

    public Integer selectBooksNums();

    public BookInfo selectBookInfoByIdOrName(BookInfo bookInfo);

    public BookInfo selectBookInfoById(Integer id);

    public Integer updateBookInfoById(BookInfo bookInfo);

    public Integer deleteBookInfoById(Integer id);

    public Integer deleteBookInfoByIds(List<Integer> ids);



}
